import {useRouteError} from "react-router-dom";

export default function Error() {
    const error = useRouteError();
    return (
        <div className="container page">
            <div className="Row">
                <div className="col-md-10 col-xs-12 offset-md-3">
                    <h1>oh no</h1>
                    <p>页面出错</p>
                    <p>
                        <i>{error.statusText || error.message}</i>
                    </p>
                </div>
            </div>
        </div>
    )
}